package com.LeeCode;

/**
 * 三角形类型
 */

public class Code3024 {
    public static void main(String[] args) {
        int[] nums = {3, 4, 5};
        System.out.println(new Code3024().triangleType(nums));
    }

    public String triangleType(int[] nums) {
        if (nums[0] + nums[1] <= nums[2] || nums[1] + nums[2] <= nums[0] || nums[2] + nums[0] <= nums[1]) {
            return "none";
        } else if (nums[0] == nums[1] && nums[1] == nums[2]) {
            return "equilateral";
        } else if (nums[0] == nums[1] || nums[1] == nums[2] || nums[2] == nums[0]) {
            return "isosceles";
        } else {
            return "scalene";
        }
    }
}
